package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {

    void delete(Long id);//删除
    void save(Permission permission);//增加
    Permission get(Long id);//查一个
    List<Permission> listAll();//查所有
    void update(Permission permission);//修改
    //分页查询
    PageInfo<Permission> query(QueryObject qo);
    //重新加载
    void reload();
    //通过角色id找对应的权限
    List<Permission> selectByRid(Long id);
}
